﻿using UnityEngine;
using System.Collections;

class LoginState : IGameState
{
    private GameStateType _stateTo;
    //构造函数
    public LoginState()
    {
    }
    //获取状态
    public GameStateType GetStateType()
    {
        return GameStateType.GST_Login;
    }
    //设置状态
    public void SetStateTo(GameStateType gs)
    {
        _stateTo = gs;
    }
    //进入状态
    public void Enter()
    {
        SetStateTo(GameStateType.GST_Continue);

        LoginCtrl.Instance.Enter();
    }
    //停止状态
    public void Exit()
    {
        LoginCtrl.Instance.Exit();
    }

    public void FixedUpdate(float fixedDeltaTime)
    {

    }
    //更新状态
    public GameStateType Update(float fDeltaTime)
    {
        return _stateTo;
    }

}
